
 <table class="display editInPlace" id="expensetable" border="0" cellpadding="0" cellspacing="1">
                <thead>
                <tr>
                    <th class="checkbox  sorting_disabled"><input id="expenses_selectall_checkbox"
                                                                  class="selectall_checkbox" type="checkbox"></th>
                    <th class="created js_table_sort sorting">Date</th>
                    <th class="merchant js_table_sort sorting">Merchant</th>
                    <th class="amount js_table_sort sorting">Total</th>
                    <th class="currency js_table_sort sorting hidden">ExchangeRate</th>
                    <th class="category js_table_sort sorting">Category</th>
                    <th class="report js_table_sort sorting">Report</th>
                    <th class="receiptcolumn  sorting_disabled">Receipt</th>
                    
<!--                    <th class="tag js_table_sort sorting">Description</th>-->
<!--                    <th class="comment js_table_sort sorting">Comment</th>-->
                    
                </tr>
                </thead>
                <tbody>
                <?php $i=0;?>
                <?php foreach ($rows as $row): ?>
                <?php if($i%2):?>
                 <tr id="expensetable_<?php echo $row['Id'];?>_<?php echo $row['Row']?>_<?php echo $totalItem;?>" class="odd hoverable">
                <?php else:?>
                 <tr id="expensetable_<?php echo $row['Id'];?>_<?php echo $row['Row']?>_<?php echo $totalItem;?>" class="even hoverable">
                <?php endif;?>
                    <td class="checkbox">
                        <div class="edit-wrapper Edit"></div>
                        <div class="edit EXPENSIFYEDIT_FULLEDIT js_editTransaction Edit EXPENSIFY_REPORTED"><a
                                class="megaEdit"> Edit</a></div>
                        <input class="expensetable_checkbox" type="checkbox" value="<?php echo $row['Id'];?>">
                    </td>
                    <td class="datecolumn editable js_editDate"><?php echo date('Y-m-d',strtotime($row['Date']));?></td>
                    <td class="merchantcolumn editable js_editDate"><?php echo $row['Merchant'];?></td>
                    <td class="amountcolumn editable js_editAmount">
                    	<?php echo number_format( $row['Total'],2);?>
                         <?php foreach ($currencies as $currency):?>
                         <?php if($currency['Id']==$row['CurrencyId']) echo $currency['CurrencyName'];?>
                         <?php endforeach;?>
                    </td>
                    <td class="exchangeratecolumn editable js_editAmount hidden"><?php echo $row['ExchangeRate'];?></td>
                    <td class="categorycolumn editable js_editCategory"><span class="implicitcategorization"><?php echo $row['Category'];?></span>
                    </td>
                    <td class="reportcolumn js_table_sort editable js_editReport"><?php echo $row['ReportName'];?></td>
                    <?php if($row['ReceiptId'] == null || $row['ReceiptId'] == 0):?>
                    <td id="<?php echo $row['ReceiptId'];?>" class="receiptcolumn"><span class="addReceiptIcons">&nbsp;</span></td>
                    <?php else:?>
                    <td id="<?php echo $row['ReceiptId'];?>" class="receiptcolumn"><span class="receiptIcons">&nbsp;</span></td>
                    <?php endif;?>
                    <!--
                    <td class="desctipyioncolumn js_table_sort editable js_editDescription"><?php //echo $row['Description'];?></td>
                    <td class="commentcolumn editable js_editComment"><?php //echo $row['Comment'];?></td>
                --></tr>
                <?php $i++;?>
                <?php endforeach;?>
                <tr>
                	<td colspan="9">
                	<?php echo $paginationString;?>          
                	
                	</td>
                </tr>
                </tbody>
            </table>
  <div class="clear"></div>
